package service;

import dao.UserDao;
import entity.User;
import factory.UserDaoFactory;

public class UserService {
    private UserDao userDao;

    public UserService(){
        this.userDao = UserDaoFactory.getUserDao();
    }

    //登陆服务
    public User loginService(User user){
        return userDao.userLogin(user);
    }
}
